### Macro to Simplify Array Length Calculation (Revived from PR #401)#519
### Macro to Simplify Array Length Calculation (Revived from PR #401)#519arturobernalg wants to merge 1 commit intoapache:trunkfrom
Conversation
|
This looks better - thanks for redoing it - but it should be AP_ARRAY_LEN() rather than just ARRAY_LEN() to avoid namespace conflicts. Hopefully you can change it with a sed command :) |
This commit introduces the AP_ARRAY_LEN macro to simplify array length calculations by replacing occurrences of `sizeof(a)/sizeof(a[0])` with `AP_ARRAY_LEN(a)`.
4206487 to
6631444
Compare
Agreed. I've implemented the changes and updated the committee message. |
|
Also thanks from my side! |
|
Can you make your fork writable by committers? I'd like to test a couple of additional changes to this. |
This PR is based on PR #401, which proposed
adding the
ARRAY_LENmacro to improve code readability and maintainability. The originalPR was abandoned and had conflicts, so I have rebased it, resolved issues, and integrated
the changes.